﻿
@{
    ViewData["Title"] = "写动态";
    Layout = "~/Views/Shared/_Back.cshtml";
}
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="~/tinymce/tinymce.min.js"></script>
<script src="~/tinymce/langs/zh-Hans.js"></script>

@*<script type="text/javascript">

    $(function () {

        tinymce.init({
            selector: '#textContent',
            language: "zh-Hans",
            plugins: "table image",
            toolbar: 'bold italic underline alignleft aligncenter alignright alignjustify fontselect fontsizeselect table image ',
            images_upload_url: '/file/uploadpic',
            images_upload_base_path: '',
        });

    });  //end page ready

</script>*@
<form action="/Back/SaveDynamic" method="post" enctype="multipart/form-data">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-row layui-col-space10">
                <div class="layui-col-md4">
                    <h3>动态发布日期</h3>
                    <input type="text" class="layui-input" id="txtTime" name="txtTime" placeholder="发布日期">
                </div>
            </div>
        </div>
        <div class="layui-card-body ">
            <h3>动态内容编写</h3>
            <div class="form-group">
                <textarea name="txtContent" id="txtContent" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
            <hr class="layui-border-cyan">
            <input type="submit" id="btnSAVE" name="btnSAVE" value="发布" class="layui-btn layui-btn-radius" />
            <a href="~/Back/DynamicList" id="btnCancel" name="btnCancel" class="layui-btn-radius layui-btn layui-btn-normal">取消</a>
        </div>
    </div>
</form>
@section Scripts{
    <script>
        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#txtTime' //指定元素
            });
        });
    </script>
}


